home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 5_9.lha / 5_9 / 5_9b4.c < prev    next >
Text File  |  1993-08-08  |  289b  |  14 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. oid f()
  6.  
  7.    char_stack s1(100);
  8.    char_stack s2(200);
  9.    s1.push('a');
  10.    s2.push(s1.pop());
  11.    char ch = s2.pop();
  12.    cout << chr(ch) << "\n";
  13.  
  14.